import request from '@/utils/request'

const monitor = {
  jobList(params) {
    return request.get("/schedule/job/list", {params})
  },
  jobAdd(data) {
    return request.post("/schedule/job/add", data)
  },
  jobUpdate(data) {
    return request.post("/schedule/job/update", data)
  },
  jobGet(id) {
    return request.get(`/schedule/job/detail/${id}`)
  },
  jobDel(id) {
    return request.post(`/schedule/job/delete/${id}`)
  },
  jobResume(id){
    return request.post(`/schedule/job/resume/${id}`)
  },
  jobPause(id){
    return request.post(`/schedule/job/pause/${id}`)
  },
  jobLogList(params) {
    return request.get(`/schedule/jobLog/list`, {params})
  },
  jobLogDel(id){
    return request.post(`/schedule/jobLog/delete/${id}`)
  }

}

export default monitor;
